package exception;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;

/**
 *
 */
public class ThrowsDemo {
    public void doSome() throws IOException, AWTException {}
}
class SubClass extends ThrowsDemo{
    //public void doSome() throws IOException,AWTException{}//等于
    //public void doSome() throws IOException{}//少于
    //public void doSome() {}//不抛

    //public void doSome() throws FileNotFoundException{}//小于
    //public void doSome() throws SQLException{}//不允许抛出额外异常
    //public void doSome() throws Exception{}//不允许抛出大于父类的异常

    //public void doSome () throws IOException,AWTException{}
    //public void doSome () throws IOException{}
    //public void doSome (){}
    //public void doSome () throws FileNotFoundException{}
    //public void doSome() throws SQLException{}
    //public void doSome() throws Exception{}





        }
